package com.situ.day10;

public class RunnableDemo{
	public static void main(String[] args) {
		MyRunnable1 myRunnable1 =new MyRunnable1();
		MyRunnable2 myRunnable2 =new MyRunnable2();
		Thread thread1 =new Thread(myRunnable1,"线程1");
		Thread thread2 =new Thread(myRunnable2,"线程2");
		thread1.start();
		thread2.start();
				
	}
	
}
